package c.a.a.b0.k;

import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import c.a.a.b0.j.d;
import c.a.a.l;
import c.a.a.z.b.c;
import c.a.a.z.b.r;
import java.util.List;

/* compiled from: ShapeStroke */
public class p implements b {
    public final String a;
    public final c.a.a.b0.j.b b;
    public final List<c.a.a.b0.j.b> c;
    public final c.a.a.b0.j.a d;
    public final d e;
    public final c.a.a.b0.j.b f;
    public final a g;
    public final b h;
    public final float i;
    public final boolean j;

    /* compiled from: ShapeStroke */
    public enum a {
        BUTT,
        ROUND,
        UNKNOWN;

        public Cap a() {
            int ordinal = ordinal();
            if (ordinal == 0) {
                return Cap.BUTT;
            }
            if (ordinal != 1) {
                return Cap.SQUARE;
            }
            return Cap.ROUND;
        }
    }

    /* compiled from: ShapeStroke */
    public enum b {
        MITER,
        ROUND,
        BEVEL;

        public Join a() {
            int ordinal = ordinal();
            if (ordinal == 0) {
                return Join.MITER;
            }
            if (ordinal == 1) {
                return Join.ROUND;
            }
            if (ordinal != 2) {
                return null;
            }
            return Join.BEVEL;
        }
    }

    public p(String str, c.a.a.b0.j.b bVar, List<c.a.a.b0.j.b> list, c.a.a.b0.j.a aVar, d dVar, c.a.a.b0.j.b bVar2, a aVar2, b bVar3, float f, boolean z) {
        this.a = str;
        this.b = bVar;
        this.c = list;
        this.d = aVar;
        this.e = dVar;
        this.f = bVar2;
        this.g = aVar2;
        this.h = bVar3;
        this.i = f;
        this.j = z;
    }

    public c a(l lVar, c.a.a.b0.l.b bVar) {
        return new r(lVar, bVar, this);
    }
}
